40. The prohibition set forth in section 128.6 of the Act respecting the conservation and development of wildlife (chapter C-61.1) to carry on, in a wildlife habitat, an activity that may alter any biological, physical or chemical component peculiar to the habitat of the animal or fish concerned does not apply to a person who, in any of the habitats mentioned in paragraphs 2 to 4 and 9 of section 1, lays out a surveying line not more than 2 m wide or carries on any activity making it possible to subsequently locate that line, except in the habitat of a threatened or vulnerable wildlife species. No person may carry on those activities in a heronry, except during the period from 1 August to 31 March.